package com.xja.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.xja.bean.District;
import com.xja.mapper.DistrictMapper;
import com.xja.service.DistrictService;

import java.util.List;

/**
@author 李岩
@date 2021/12/23-10:32
@describe
*/
@Service
public class DistrictServiceImpl implements DistrictService{

    @Autowired
    private DistrictMapper districtMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return districtMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(District record) {
        return districtMapper.insert(record);
    }

    @Override
    public int insertSelective(District record) {
        return districtMapper.insertSelective(record);
    }

    @Override
    public District selectByPrimaryKey(Integer id) {
        return districtMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<District> findAllDistrict() {
        return districtMapper.findAllDistrict();
    }

    @Override
    public int updateByPrimaryKeySelective(District record) {
        return districtMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(District record) {
        return districtMapper.updateByPrimaryKey(record);
    }

}
